projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fda241d
)
arch/arm/cpu/armv7/omap-common/spl.c: Fix GCC 4.2 warnings
author
Anatolij Gustschin
<
[email protected]
>
Sat, 3 Dec 2011 06:46:13 +0000
(06:46 +0000)
committer
Albert ARIBAUD
<
[email protected]
>
Tue, 6 Dec 2011 22:59:40 +0000
(23:59 +0100)
Fix:
spl.c: In function 'jump_to_image_no_args':
spl.c:103: warning: assignment makes pointer from integer without a cast
spl.c:105: warning: dereferencing type-punned pointer will break
strict-aliasing rules
Signed-off-by: Anatolij Gustschin <
[email protected]
>
Cc: sricharan <
[email protected]
>
Cc: Tom Rini <
[email protected]
>
Acked-by: Marek Vasut <
[email protected]
>
Acked-by: Tom Rini <
[email protected]
>
arch/arm/cpu/armv7/omap-common/spl.c
patch
|
blob
|
history
diff --git
a/arch/arm/cpu/armv7/omap-common/spl.c
b/arch/arm/cpu/armv7/omap-common/spl.c
index 25f04edf112f331a436436ed83f1ac43eb962b25..9c35a090381127d4e593327a0caff192b9e79f75 100644
(file)
--- a/
arch/arm/cpu/armv7/omap-common/spl.c
+++ b/
arch/arm/cpu/armv7/omap-common/spl.c
@@
-100,9
+100,10
@@
static void jump_to_image_no_args(void)
debug("image entry point: 0x%X\n", spl_image.entry_point);
/* Pass the saved boot_params from rom code */
#if defined(CONFIG_VIRTIO) || defined(CONFIG_ZEBU)
- image_entry = 0x80100000;
+ image_entry =
(image_entry_noargs_t)
0x80100000;
#endif
- image_entry((u32 *)&boot_params_ptr);
+ u32 boot_params_ptr_addr = (u32)&boot_params_ptr;
+ image_entry((u32 *)boot_params_ptr_addr);
}
void jump_to_image_no_args(void) __attribute__ ((noreturn));